import 'package:flutter/material.dart';
import 'package:stroke_customer/page/index/CustomerIndexArticle.dart';
import 'package:stroke_customer/page/index/CustomerIndexMenu.dart';


void main() => runApp(CustomerIndex());

class CustomerIndex extends StatelessWidget {

  final AssetImage _assetImage= new AssetImage('images/index/cutomer_index_banner.png');


  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: '卒中医疗',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: _CustomerIndexPage(),
    );
  }

}
class _CustomerIndexPage extends StatefulWidget{

  @override
  State<StatefulWidget> createState() {
    return new _CustomerIndexPageState();
  }
}

class _CustomerIndexPageState extends State<_CustomerIndexPage>{

  final String banerUri="images/index/cutomer_index_banner.png";

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Column(
        children: <Widget>[
          new Image.asset(
            banerUri,
            width: 300.0,
            height: 180.0,
            fit: BoxFit.cover,
          ),
          new CustomerIndexMenu(),
          new Text("artcles")
        ],
     ),
    );


  }

}